1 Substitution Algo 1 Transposition Algo
Combine for CRWA
C = Cyphertext M = Plaintext message K = Key E = Encrypt Function
| 'use strict'; | |
| /** | |
| * @callback BeforeShutdownListener | |
| * @param {string} [signalOrEvent] The exit signal or event name received on the process. | |
| */ | |
| /** | |
| * System signals the app will listen to initiate shutdown. | |
| * @const {string[]} |
| import Network; | |
| import JSON; | |
| + GeolocationProvider inherits \Objects\MappableAdopter<Float, Float>{ | |
| public f constructor <> { | |
| \Network\Fetch({ | |
| Method: 'GET', | |
| URL: \Network\Path <String "http://iplocation.net/api/" +toString<\Network\ClientIPAddress> >, | |
| isSuccessful: <\Network\FetchResponse response> { | |
| yield new \JSON\JsonObject { |
| + Message inherits \MySQL\DAO\Model { | |
| String tables = "messages"; | |
| String msgContents = null; | |
| String msgOrigin = null; | |
| String msgRecipient = null; | |
| Boolean isFirstSave = true; | |
| public f constructor < | |
| String _msgContents, |
| { | |
| "status": "ok" | |
| } |
| f Main <String[] args> { | |
| yield new \GeoChat\GeoServices\Coord < | |
| \FloatUtils\Float _latitude, | |
| \FloatUtils\Float _longitude | |
| >; | |
| f isContainedInPolygon <\GeoChat\GeoServices\Polygon _polygon>{ | |
| // Check Contraints | |
| \var rectangularCheck = Reduce <_polygon.points.asArray, Int> (_point, i) => { | |
| \var latCheck = (_point.latitude < @_latitude); | |
| \var longCheck = (_point.longitude < @_longitude) |
1 Substitution Algo 1 Transposition Algo
Combine for CRWA
C = Cyphertext M = Plaintext message K = Key E = Encrypt Function
| class Routes extends Polarlicht3/HTTPRoutesManager | |
| public f Main<> | |
| @RegisterRoute <String "/", new Polarlicht3/Examples/Controllers/Welcome>; | |
| @RegisterRoute <String "/signin", new Polarlicht3/Controllers/Auth/Signin>; | |
| @RegisterRoute <String "/register", new Polarlicht3/Controllers/Auth/Register>; | |
| $ -> | |
| composer= composer or {} | |
| composer.locationservices= | |
| showPosition: (position) -> | |
| document.geoclocation=[ | |
| position.coords.latitude | |
| position.coords.longitude | |
| ] | |
| getlocation: -> | |
| if navigator.geolocation |