implement url-safe base64

This commit is contained in:
Michael Becker 2023-01-07 00:17:47 -05:00
parent 409a35b476
commit 673b78b8d5
104 changed files with 11 additions and 0 deletions

0
MBS.Framework/Application.cs Normal file → Executable file
View File

0
MBS.Framework/ApplicationActivatedEvent.cs Normal file → Executable file
View File

0
MBS.Framework/ApplicationActivationType.cs Normal file → Executable file
View File

0
MBS.Framework/ArrayExtensions.cs Normal file → Executable file
View File

0
MBS.Framework/CardinalDirection.cs Normal file → Executable file
View File

0
MBS.Framework/Collections/ExtensionMethods.cs Normal file → Executable file
View File

View File

0
MBS.Framework/Collections/Generic/AutoDictionary.cs Normal file → Executable file
View File

View File

0
MBS.Framework/Collections/Generic/ExtensionMethods.cs Normal file → Executable file
View File

0
MBS.Framework/Collections/Generic/HandleDictionary.cs Normal file → Executable file
View File

0
MBS.Framework/Command.cs Normal file → Executable file
View File

0
MBS.Framework/CommandEvent.cs Normal file → Executable file
View File

0
MBS.Framework/CommandItem.cs Normal file → Executable file
View File

0
MBS.Framework/CommandLine.cs Normal file → Executable file
View File

0
MBS.Framework/CommandLineCommand.cs Normal file → Executable file
View File

0
MBS.Framework/CommandLineOption.cs Normal file → Executable file
View File

0
MBS.Framework/CommandLineOptionValueType.cs Normal file → Executable file
View File

0
MBS.Framework/CommandLineParser.cs Normal file → Executable file
View File

0
MBS.Framework/CommandStylePreset.cs Normal file → Executable file
View File

0
MBS.Framework/ConsoleExtensions.cs Normal file → Executable file
View File

0
MBS.Framework/Context.cs Normal file → Executable file
View File

0
MBS.Framework/ContextChangedEvent.cs Normal file → Executable file
View File

11
MBS.Framework/Conversion.cs Normal file → Executable file
View File

@ -66,5 +66,16 @@ namespace MBS.Framework
}
return VerticalAlignment.Default;
}
public static string UrlSafeBase64ToBase64(string base64)
{
// RFC 4648 "Url-Safe Base64"
return base64.Replace('_', '/').Replace('-', '+');
}
public static string Base64ToUrlSafeBase64(string base64)
{
// RFC 4648 "Url-Safe Base64"
return base64.Replace('+', '-').Replace('/', '_');
}
}
}

0
MBS.Framework/CustomSettingsProvider.cs Normal file → Executable file
View File

0
MBS.Framework/Drawing/Color.cs Normal file → Executable file
View File

0
MBS.Framework/Drawing/Colors.cs Normal file → Executable file
View File

0
MBS.Framework/Drawing/Dimension.cs Normal file → Executable file
View File

0
MBS.Framework/Drawing/Dimension2D.cs Normal file → Executable file
View File

0
MBS.Framework/Drawing/Dimension3D.cs Normal file → Executable file
View File

0
MBS.Framework/Drawing/KnownColor.cs Normal file → Executable file
View File

0
MBS.Framework/Drawing/Measurement.cs Normal file → Executable file
View File

0
MBS.Framework/Drawing/MeasurementDimension2D.cs Normal file → Executable file
View File

0
MBS.Framework/Drawing/MeasurementUnit.cs Normal file → Executable file
View File

0
MBS.Framework/Drawing/MeasurementVector2D.cs Normal file → Executable file
View File

0
MBS.Framework/Drawing/Padding.cs Normal file → Executable file
View File

0
MBS.Framework/Drawing/Rectangle.cs Normal file → Executable file
View File

0
MBS.Framework/Drawing/Vector.cs Normal file → Executable file
View File

0
MBS.Framework/EventFilter.cs Normal file → Executable file
View File

0
MBS.Framework/EventFilterDelegate.cs Normal file → Executable file
View File

0
MBS.Framework/EventFilterType.cs Normal file → Executable file
View File

0
MBS.Framework/ExtensionMethods.cs Normal file → Executable file
View File

0
MBS.Framework/Feature.cs Normal file → Executable file
View File

0
MBS.Framework/FindFileOptions.cs Normal file → Executable file
View File

0
MBS.Framework/IO/CaseSensitiveHandling.cs Normal file → Executable file
View File

0
MBS.Framework/IO/File.cs Normal file → Executable file
View File

0
MBS.Framework/ISupportsExtraData.cs Normal file → Executable file
View File

0
MBS.Framework/InstallationStatus.cs Normal file → Executable file
View File

0
MBS.Framework/Language.cs Normal file → Executable file
View File

0
MBS.Framework/Logic/Conditional/Condition.cs Normal file → Executable file
View File

View File

0
MBS.Framework/Logic/Conditional/ConditionComparison.cs Normal file → Executable file
View File

0
MBS.Framework/Logic/Conditional/ConditionGroup.cs Normal file → Executable file
View File

View File

View File

0
MBS.Framework/Logic/Expression.cs Normal file → Executable file
View File

0
MBS.Framework/Logic/ExpressionContext.cs Normal file → Executable file
View File

View File

0
MBS.Framework/Logic/Expressions/BooleanExpression.cs Normal file → Executable file
View File

0
MBS.Framework/Logic/Expressions/ComplexExpression.cs Normal file → Executable file
View File

0
MBS.Framework/Logic/Expressions/EmptyExpression.cs Normal file → Executable file
View File

0
MBS.Framework/Logic/Expressions/LiteralExpression.cs Normal file → Executable file
View File

0
MBS.Framework/Logic/Expressions/VariableExpression.cs Normal file → Executable file
View File

0
MBS.Framework/Logic/Variable.cs Normal file → Executable file
View File

0
MBS.Framework/Logic/VariableRequestedEvent.cs Normal file → Executable file
View File

0
MBS.Framework/MBS.Framework.csproj Normal file → Executable file
View File

0
MBS.Framework/MathExtensions.cs Normal file → Executable file
View File

0
MBS.Framework/MemorySettingsProvider.cs Normal file → Executable file
View File

0
MBS.Framework/MemsetExtension.cs Normal file → Executable file
View File

0
MBS.Framework/MessageSeverity.cs Normal file → Executable file
View File

0
MBS.Framework/NanoId.cs Normal file → Executable file
View File

0
MBS.Framework/NativeHandle.cs Normal file → Executable file
View File

0
MBS.Framework/NumericStringSplitter.cs Normal file → Executable file
View File

0
MBS.Framework/ObjectExtensions.cs Normal file → Executable file
View File

0
MBS.Framework/Plugin.cs Normal file → Executable file
View File

0
MBS.Framework/Properties/AssemblyInfo.cs Normal file → Executable file
View File

0
MBS.Framework/Reflection.cs Normal file → Executable file
View File

0
MBS.Framework/Scripting/ScriptEnvironment.cs Normal file → Executable file
View File

0
MBS.Framework/Scripting/Strings/ScriptableString.cs Normal file → Executable file
View File

0
MBS.Framework/Scripting/Strings/StringComponent.cs Normal file → Executable file
View File

View File

0
MBS.Framework/SeekDirection.cs Normal file → Executable file
View File

0
MBS.Framework/Setting.cs Normal file → Executable file
View File

0
MBS.Framework/Settings/BooleanSetting.cs Normal file → Executable file
View File

0
MBS.Framework/Settings/ChoiceSetting.cs Normal file → Executable file
View File

0
MBS.Framework/Settings/CollectionSetting.cs Normal file → Executable file
View File

0
MBS.Framework/Settings/CommandSetting.cs Normal file → Executable file
View File

0
MBS.Framework/Settings/CustomSetting.cs Normal file → Executable file
View File

0
MBS.Framework/Settings/FileSetting.cs Normal file → Executable file
View File

0
MBS.Framework/Settings/GroupSetting.cs Normal file → Executable file
View File

0
MBS.Framework/Settings/RangeSetting.cs Normal file → Executable file
View File

0
MBS.Framework/Settings/TextSetting.cs Normal file → Executable file
View File

0
MBS.Framework/Settings/VersionSetting.cs Normal file → Executable file
View File

0
MBS.Framework/SettingsGroup.cs Normal file → Executable file
View File

0
MBS.Framework/SettingsProfile.cs Normal file → Executable file
View File

0
MBS.Framework/SettingsProvider.cs Normal file → Executable file
View File

0
MBS.Framework/SettingsValue.cs Normal file → Executable file
View File

0
MBS.Framework/StockType.cs Normal file → Executable file
View File

Some files were not shown because too many files have changed in this diff Show More