fixed length identifiers
This commit is contained in:
@@ -66,10 +66,8 @@ public abstract class LinkedCookieResource extends LinkedResource {
|
||||
}
|
||||
|
||||
public static String generate (Context context, byte[] fingerprint, int nonce) {
|
||||
|
||||
return "[Verifying my PGP key: openpgp4fpr:"
|
||||
+ KeyFormattingUtils.convertFingerprintToHex(fingerprint) + "#" + Integer.toHexString(nonce) + "]";
|
||||
|
||||
return String.format("\"[Verifying my PGP key: openpgp4fpr:%s#%08x]\"",
|
||||
KeyFormattingUtils.convertFingerprintToHex(fingerprint), nonce);
|
||||
}
|
||||
|
||||
public static String generatePreview () {
|
||||
|
||||
@@ -41,9 +41,8 @@ public class DnsResource extends LinkedCookieResource {
|
||||
|
||||
public static String generateText (Context context, byte[] fingerprint, int nonce) {
|
||||
|
||||
return "pgpid+cookie="
|
||||
+ KeyFormattingUtils.convertFingerprintToHex(fingerprint) + ";"
|
||||
+ Integer.toHexString(nonce) + "";
|
||||
return String.format("pgpid+cookie=%s;%08x",
|
||||
KeyFormattingUtils.convertFingerprintToHex(fingerprint), nonce);
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user