Add static method in ClassicalLiteral for generating hash string