Help for this page

Select Code to Download


  1. or download this
    my $other_secret = Crypt::SecretBuffer->new("Foo");
    $password->unmask_secret_to(\&do_something, $user, $password, $other_s
    +ecret);
    
  2. or download this
    my $other_secret = Crypt::SecretBuffer->new("Foo");
    $password->unmask_to(sub($pass) { do_something($user, $pass, $other_se
    +cret) });
    
  3. or download this
    use 5.036;
    
    ...
    sub my_api_function($user, $password, $secret) {
        unmask_secrets_to(\&private_fn, $user, $password, $secret);
    }