• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..--

Application/22-Nov-2023-643323

buildSrc/22-Nov-2023-1913

gradle/wrapper/22-Nov-2023-76

screenshots/22-Nov-2023-

CONTRIB.mdD22-Nov-20231.6 KiB3627

LICENSED22-Nov-202331.5 KiB648514

README.mdD22-Nov-20232.7 KiB7249

build.gradleD22-Nov-2023259 119

gradlewD22-Nov-20235 KiB165122

gradlew.batD22-Nov-20232.3 KiB9166

settings.gradleD22-Nov-202322 21

template-params.xmlD22-Nov-20232.9 KiB8561

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 v23
27- Android Build Tools v23.0.0
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 2014 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