Encode String in Base64

    0

    5

    base64
    Java Public Recipes

    encode string in base64

    import java.util.Base64;
    
    String encoded = Base64.getEncoder().encodeToString("mystring".getBytes());
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Explore
    • Cookbooks
    • Playground
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.