create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
| Moved to | |
| https://github.com/romannurik/android-swipetodismiss |
This is a local copy of the commands from:
This guide serves as a reference of collected information necessary for strict management of PGP keys. This includes keeping a master key that always remains
| import java.security.SecureRandom; | |
| import javax.crypto.spec.PBEKeySpec; | |
| import javax.crypto.SecretKeyFactory; | |
| import java.math.BigInteger; | |
| import java.security.NoSuchAlgorithmException; | |
| import java.security.spec.InvalidKeySpecException; | |
| /* | |
| * PBKDF2 salted password hashing. | |
| * Author: havoc AT defuse.ca |
| import com.android.volley.toolbox.HurlStack; | |
| import com.squareup.okhttp.OkHttpClient; | |
| import java.io.IOException; | |
| import java.net.HttpURLConnection; | |
| import java.net.URL; | |
| /** | |
| * An {@link com.android.volley.toolbox.HttpStack HttpStack} implementation which | |
| * uses OkHttp as its transport. | |
| */ |
| /** | |
| * Creates a 'ghost' bitmap version of the given source drawable (ideally a BitmapDrawable). | |
| * In the ghost bitmap, the RGB values take on the values from the 'color' argument, while | |
| * the alpha values are derived from the source's grayscaled RGB values. The effect is that | |
| * you can see through darker parts of the source bitmap, while lighter parts show up as | |
| * the given color. The 'invert' argument inverts the computation of alpha values, and looks | |
| * best when the given color is a dark. | |
| */ | |
| private Bitmap createGhostIcon(Drawable src, int color, boolean invert) { | |
| int width = src.getIntrinsicWidth(); |
| /* | |
| * Copyright (c) 2013 Alex Curran | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
| /* Copyright 2013 Google Inc. | |
| Licensed under Apache 2.0: http://www.apache.org/licenses/LICENSE-2.0.html */ | |
| package com.example.latlnginterpolation; | |
| import android.animation.ObjectAnimator; | |
| import android.animation.TypeEvaluator; | |
| import android.animation.ValueAnimator; | |
| import android.annotation.TargetApi; | |
| import android.os.Build; |
| <manifest ...> | |
| ... | |
| <!-- Make sure your app (or individual activity) uses the | |
| theme with the custom attribute defined. --> | |
| <application android:theme="@style/AppTheme" ...> | |
| ... | |
| </application> | |
| </manifest> |
| /* | |
| * Copyright 2014 Google Inc. | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |