Example usage for org.springframework.security.crypto.encrypt Encryptors stronger

List of usage examples for org.springframework.security.crypto.encrypt Encryptors stronger

Introduction

In this page you can find the example usage for org.springframework.security.crypto.encrypt Encryptors stronger.

Prototype

public static BytesEncryptor stronger(CharSequence password, CharSequence salt) 

Source Link

Document

Creates a standard password-based bytes encryptor using 256 bit AES encryption with Galois Counter Mode (GCM).

Usage

From source file:com.greensopinion.finance.services.encryption.Encryptor.java

public Encryptor(EncryptorSettings settings, String masterPassword) {
    this(Encryptors.stronger(masterPassword, new String(Hex.encode(settings.getSalt()))));
}