Generates a bunch of files needed for securing SSL/TLS servers.
To add this files to Istio:
$ oc create -n istio-system secret tls ingressgateway-EXAMPLE-certs --key EXAMPLE-root.key --cert EXAMPLE-root.crt
| package com.example; | |
| /* | |
| * Copyright (C) 2014 Alejandro Ayuso | |
| * | |
| * This program is free software: you can redistribute it and/or modify | |
| * it under the terms of the GNU General Public License as published by | |
| * the Free Software Foundation, either version 3 of the License. | |
| * | |
| * This program is distributed in the hope that it will be useful, | |
| * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| import java.security.Key; | |
| import java.util.Optional; | |
| import javax.crypto.Cipher; | |
| import javax.crypto.spec.SecretKeySpec; | |
| public class AESCrypto { | |
| public Optional<String> encrypt (final String plain, final String secret) { | |
| Key aesKey = new SecretKeySpec(secret.getBytes(), "AES"); |
| import React, { PropTypes } from 'react'; | |
| import { View, Platform } from 'react-native'; | |
| import { Surface, Shape, Path, Group } from 'ReactNativeART'; | |
| /** | |
| * Custom implementation of the react-native-circular-progress that allows to | |
| * render ART donut charts. Instead of accepting a single set of fill & color values, | |
| * this components takes an array of objects. | |
| * https://github.com/bgryszko/react-native-circular-progress | |
| * @example |
| package com.myapp; | |
| import android.content.Intent; | |
| import android.os.Bundle; | |
| import com.facebook.react.ReactActivity; | |
| import com.facebook.react.ReactActivityDelegate; | |
| // Standard Activiy generated by react-native | |
| public class MainActivity extends ReactActivity { |