Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | - | - | ||||
.google/ | 22-Nov-2023 | - | 18 | 12 | ||
Application/ | 22-Nov-2023 | - | 1,814 | 787 | ||
gradle/wrapper/ | 22-Nov-2023 | - | 7 | 6 | ||
screenshots/ | 22-Nov-2023 | - | ||||
CONTRIB.md | D | 22-Nov-2023 | 1.6 KiB | 36 | 27 | |
CONTRIBUTING.md | D | 22-Nov-2023 | 1.5 KiB | 36 | 27 | |
LICENSE | D | 22-Nov-2023 | 31.5 KiB | 648 | 514 | |
README.md | D | 22-Nov-2023 | 2.7 KiB | 72 | 49 | |
build.gradle | D | 22-Nov-2023 | 10 | 11 | 0 | |
gradlew | D | 22-Nov-2023 | 5 KiB | 165 | 122 | |
gradlew.bat | D | 22-Nov-2023 | 2.3 KiB | 91 | 66 | |
settings.gradle | D | 22-Nov-2023 | 22 | 2 | 1 |
README.md
1 2Android BasicAndroidKeyStore Sample 3=================================== 4 5An advanced sample displaying the creation and usage of data integrity mechanisms 6 7Introduction 8------------ 9 10This sample demonstrates how to use the Android [KeyStore][1] to safely create and store 11encryption keys that only your application can access. 12 13A [KeyPair][2] consisting of a [PrivateKey][3] and a [PublicKey][4] is being generated. 14The private key then is being used to sign and verify a String. 15 16Next to that appropriate exception handling for potential errors is being displayed. 17 18[1]: https://developer.android.com/reference/java/security/KeyStore.html 19[2]: https://developer.android.com/reference/java/security/KeyPair.html 20[3]: https://developer.android.com/reference/java/security/PrivateKey.html 21[4]: https://developer.android.com/reference/java/security/PublicKey.html 22 23Pre-requisites 24-------------- 25 26- Android SDK 23 27- Android Build Tools v23.0.3 28- Android Support Repository 29 30Screenshots 31------------- 32 33<img src="screenshots/screenshot1.png" height="400" alt="Screenshot"/> <img src="screenshots/screenshot2.png" height="400" alt="Screenshot"/> <img src="screenshots/screenshot3.png" height="400" alt="Screenshot"/> <img src="screenshots/screenshot4.png" height="400" alt="Screenshot"/> <img src="screenshots/screenshot5.png" height="400" alt="Screenshot"/> 34 35Getting Started 36--------------- 37 38This sample uses the Gradle build system. To build this project, use the 39"gradlew build" command or use "Import Project" in Android Studio. 40 41Support 42------- 43 44- Google+ Community: https://plus.google.com/communities/105153134372062985968 45- Stack Overflow: http://stackoverflow.com/questions/tagged/android 46 47If you've found an error in this sample, please file an issue: 48https://github.com/googlesamples/android-BasicAndroidKeyStore 49 50Patches are encouraged, and may be submitted by forking this project and 51submitting a pull request through GitHub. Please see CONTRIBUTING.md for more details. 52 53License 54------- 55 56Copyright 2016 The Android Open Source Project, Inc. 57 58Licensed to the Apache Software Foundation (ASF) under one or more contributor 59license agreements. See the NOTICE file distributed with this work for 60additional information regarding copyright ownership. The ASF licenses this 61file to you under the Apache License, Version 2.0 (the "License"); you may not 62use this file except in compliance with the License. You may obtain a copy of 63the License at 64 65http://www.apache.org/licenses/LICENSE-2.0 66 67Unless required by applicable law or agreed to in writing, software 68distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 69WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 70License for the specific language governing permissions and limitations under 71the License. 72