package com.ironz.binaryprefs.encryption;

public interface KeyEncryption {

    KeyEncryption NO_OP = new KeyEncryption() {
        @Override
        public String decrypt(String name) {
            return name;
        }

        @Override
        public String encrypt(String name) {
            return name;
        }
    };

    String decrypt(String name);

    String encrypt(String name);
}

@@ -40,41 +40,481 @@
 n;%0A%0A
-public interface KeyEncryption %7B%0A
+/**%0A * Contract which describe how name will be converted%0A */%0Apublic interface KeyEncryption %7B%0A%0A    /**%0A     * Decrypts name from encrypted to original%0A     *%0A     * @param name encrypted name%0A     * @return original name%0A     */%0A    String decrypt(String name);%0A%0A    /**%0A     * Encrypts name from original to encrypted%0A     *%0A     * @param name original name%0A     * @return encrypted name%0A     */%0A    String encrypt(String name);%0A%0A    /**%0A     * Return name as is.%0A     */
 %0A   
@@ -765,75 +765,7 @@
   %7D;
-%0A%0A    String decrypt(String name);%0A%0A    String encrypt(String name);
 %0A%7D%0A

add contract documentation