Example usage for org.apache.wicket.util.crypt Base64 Base64

List of usage examples for org.apache.wicket.util.crypt Base64 Base64

Introduction

In this page you can find the example usage for org.apache.wicket.util.crypt Base64 Base64.

Prototype

public Base64(final int lineLength) 

Source Link

Document

Creates a Base64 codec used for decoding (all modes) and encoding in URL-unsafe mode.

Usage

From source file:sf.wicklet.ext.application.DefaultWickletCrypt.java

License:Apache License

private byte[] decrypt(final String text) throws GeneralSecurityException {
    final byte[] decoded = new Base64(true).decode(text);
    return Lazy.crypt.crypt(decoded, Cipher.DECRYPT_MODE);
}