Package com.google.bitcoin.crypto

Examples of com.google.bitcoin.crypto.KeyCrypterScrypt


        }
    }

    public void changeWalletPassword(char[] oldUtf16Password, char[] newUtf16Password) throws WrongPasswordException {
        // check if aes key for new password can be generated before decrypting
        KeyCrypterScrypt keyCrypter = new KeyCrypterScrypt();
        KeyParameter aesKey = deriveKeyAndWipePassword(newUtf16Password, keyCrypter);

        updateLastWalletChange(wallet);

        if (isWalletEncrypted()) {
View Full Code Here


            wipeAesKey(oldAesKey);
        }
    }

    private void encryptWallet(char[] utf16Password, Wallet wallet) throws WrongPasswordException {
        KeyCrypterScrypt keyCrypter = new KeyCrypterScrypt();
        KeyParameter aesKey = deriveKeyAndWipePassword(utf16Password, keyCrypter);

        try {
            wallet.encrypt(keyCrypter, aesKey);
        } finally {
View Full Code Here

TOP

Related Classes of com.google.bitcoin.crypto.KeyCrypterScrypt

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.