I'm learning Angular on Plural Sight and the first lesson gives an example of how to use the ng-app directive. 

Here's a link to the Plunker editor
<http://plnkr.co/edit/HIDCS8A9CR1jnAIDR0Zb?p=preview>

```
<!DOCTYPE html>
<html>

  <head>
    <script data-require="angular.js@*" data-semver="2.0.0" 
            src="https://code.angularjs.org/2.0.0-snapshot/angular2.js"></script>
    <link rel="stylesheet" href="style.css" />
    <script src="script.js"></script>
  </head>

  <body ng-app>
    <h1>Hello Plunker!</h1>
    {{ 843 /42 }}
  </body>
</html>

```

The example that was given uses the expression {{ 843 / 42 }} to demonstrate how angular would render the quotient on a webpage.

I've copied the lesson script several times over and can't figure out what I'm doing wrong and why its rendering as text.

This is my first post on stackoverflow, and I'm happy to join the community! 

Thanks Again. 
Shamus
['https://Stackoverflow.com/questions/38710913', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/6665622/']
The method you are looking for is this 

**[`org.bouncycastle.util.encoders.Base64.encode(byte[] data)`](https://people.eecs.berkeley.edu/~jonah/bc/org/bouncycastle/util/encoders/Base64.html#encode(byte[]))**

I'm not sure where you got the reference to `Base64.toBase64String`, but a quick search shows that is very close to a similar C# method.
I guess you will have to use the methoad as below and check if it compiles

```
Base64.getEncoder().encodeToString(cipher.doFinal(initiatorpassword.getBytes()))

```