All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.yahoo.security.Base58 Maven / Gradle / Ivy

There is a newer version: 8.411.13
Show newest version
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.security;

/**
 * Base58 encoding using the alphabet standardized by Bitcoin et al., which avoids
 * the use of characters [0OIl] to avoid visual ambiguity. It does not feature any
 * potential word/line-breaking characters, which means encoded strings can usually
 * be selected in one go on web pages or in the terminal.
 *
 * @see Base58 on Wiki
 *
 * @author vekterli
 */
public class Base58 {

    private static final BaseNCodec INSTANCE = BaseNCodec.of("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz");

    public static BaseNCodec codec() {
        return INSTANCE;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy