Skip to content

Instantly share code, notes, and snippets.

@Detective-Khalifah
Detective-Khalifah / README.md
Last active February 7, 2025 12:21
A simple Encryption and Decryption program in Dart (and Flutter)

string_encryption_app

A simple string Encryption and Decryption using the Caesar Cipher algorithm.

How to Run

  1. Download the files.
  2. Run dart encryption_service.dart to execute the Dart program on console.
  3. Alternatively, run flutter pub get to install dependencies and flutter run to launch the Flutter app.

Example

@Detective-Khalifah
Detective-Khalifah / Circle.kt
Created October 28, 2022 09:52
Stage 1 Task: Mobile
package hngi9
class Circle {
var radius: Double
var color: String
internal constructor() {
radius = 1.0
color = "red"
}
void main() {
double classAveragePoint, studentPercentage, studentPoint;
print('Enter percentage attained by student:'); // individual student's percentage
print('Enter points scored by student:'); // individual student's scored point(s)
print('Enter students\' average score:'); // (collective) average score of whole class
/*'double.parse(stdin.readLineSync())' from package 'dart:io'
* would be used if online consoles supported user input
*/